package com.contain.auth.config;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.oauth2.provider.token.store.JwtAccessTokenConverter;

import java.security.KeyPair;

/**
 * @Auther: tianchao
 * @Date: 2021/7/6 14:27
 * @Description:
 */
public class CustomerJwtAccessTokenConverter extends JwtAccessTokenConverter {

    @Autowired
    public KeyPair keyPair;
    @Override
    public void afterPropertiesSet() throws Exception {
        super.afterPropertiesSet();
        setKeyPair(keyPair);
    }
}
